
package com.wzq.upms.exception;

/**
 * 基本异常类
 * 
 * project：pub-core
 * 
 * $Author:Jeffy Chen
 * @version $Revision:$ 
 * @Modify $Date:$
 * @create time：2014-4-26 下午11:02:47
 *
 */
public class BaseException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * message key
	 */
	private String code;

	/**
	 * message params
	 */
	private Object[] values;
	
	public BaseException(){
		
	}

	public BaseException(String message,String code,Object[] values,Throwable cause){
		super(message, cause);
		this.code = code;
		this.values = values;
	}
	
	public BaseException(String msg) {
		super(msg);
	}

	public BaseException(String msg, Throwable cause) {
		super(msg, cause);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object[] getValues() {
		return values;
	}

	public void setValues(Object[] values) {
		this.values = values;
	}

}
